package xkp.lesson3;

public class Demo1 {
	public static void main(String[] args) {
		//在java或绝大多数编程语言中，默认数字的表示形式为十进制
		//
		int a = 100;
		//以0b开始表示二进制
		int b = 0b1000;
		int c = 01234567;
		int d = 0x3abcdef;
		System.out.println(b);
		System.out.println(c);
		System.out.println(d);
		byte a1 = 100;
		byte b1 = -100;
		//byte short char进行数学运算会先转换为int，再进行计算
		int c1 = a1+b1;
		char char1 = 'a';  //ascii 97
		int result = char1+100;
		System.out.println(result);
		
		
		
		
		
	}

}
